import React from "react";
interface User {
  name: string;
  id: number;
}
interface UserListParam {
  users: User[];
}
export const UserList = ({ users }: UserListParam) => {
  return (
    <ul className="list">
      {users.map((item, index) => {
        return (
          <li key={item.id}>
            {index}---------{item.name}
          </li>
        );
      })}
    </ul>
  );
};
